package com.unei.guava.demo.fp.supplier;

import com.google.common.base.Predicate;
import com.google.common.base.Strings;
import com.unei.guava.demo.fp.State;

/**
 * Created by sunlei on 2015/1/21.
 */
public class RegionPredicate implements Predicate<State> {
    @Override
    public boolean apply(State input) {
        return !Strings.isNullOrEmpty(input.getRegion())&&input.getRegion().equals("New York");
    }
}
